package com.xyh.transaction.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyh.transaction.common.Constant;
import com.xyh.transaction.common.LogLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Log {
    private Long id;
    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime timestamp;
    private LogLevel logLevel;
    private String logMessage;
    private String logSource;
    private String username;
    private String inputParameters;
    private String operationResult;
    private String exceptionInfo;
    private String ipAddress;
    private String requestMethod;
    private String requestUrl;

}
